package com.chw.shop.controller;

import com.chw.common.returnData.ReturnData;
import com.chw.shop.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("type/")
public class TypeController {
    @Autowired
    private TypeService typeService;
    @Autowired
    private RedisTemplate redisTemplate;

    @RequestMapping("queryType")
    public ReturnData queryType(Integer id){
        Object typeDateshuai = redisTemplate.opsForValue().get("typeDatashuai");
        return ReturnData.success(typeDateshuai);
    }

}
